home *** CD-ROM | disk | FTP | other *** search
- Path: leroy.cc.uregina.ca!ibp2
- From: ibp2@leroy.cc.uregina.ca (Chris Gerber)
- Newsgroups: comp.lang.c
- Subject: Vector Graphics
- Date: 10 Apr 1996 16:40:41 GMT
- Organization: University of Regina
- Message-ID: <4kgoa9$i12@sue.cc.uregina.ca>
- NNTP-Posting-Host: leroy.cc.uregina.ca
- X-Newsreader: Tin 1.1 PL4
-
- Hello, I'm trying to do vector (3d) graphics, and I have all the math for
- doing transformations and shading and whatnot, but it all uses x,y,z
- addressing, which is fine, but I need to find a way to convert a vector
- into an x,y screen co-ordinate so I can draw it. If anyone has some math
- algorythm for that, or a function like:
-
- void vector2point(VECTOR *p3d, int *x, int *y)
-
- or something, I'd be very appreciative. Send email too, please (my
- newserver kicks out for random intervals). Thanks in advance.
- -chris
-
-